package com.tech.event;

import com.tech.util.LogProcessUtil;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.logging.Logger;

/**
 * 窗口关闭事件
 */
public class CloseActionListener implements ActionListener {
	private static final Logger LOG = LogProcessUtil.getLogger(CloseActionListener.class.getName());

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO 本地保存用户的配置数据

		LOG.info("程序已关闭");
		System.exit(0);
	}
}
